import  http from '@/utils/http';
/* 获取首页数据 */
export async function fakeChartData(params) {
  return http.post('/userAnalysis',params);
}
/* 获取历史热门问题 */
export async function fakeTableData(params) {
  return http.post('/yesterdayHotQuestion',params)
}

export async function doStatInfo(params) {
  return http.post('/home/statInfo',params)
}

export async function doHotQuestion(params) {
  return http.post('/home/hotQuestion',params)
}

// 知识中心-首页 卡片
export async function getKnowledgeInfo(params) {
  return http.get('/knowledgeCenter/getKnowledgeInfo',params)
}

// 知识中心-首页 列表
export async function getWorkloadReport(params) {
  return http.post('/knowledgeCenter/getWorkloadReport',params)
}

// 知识中心-首页 导出
export async function exportWorkloadReport(params) {
  return http.downloadFileForPost('/knowledgeCenter/exportWorkloadReport', params);
}

//首页-数据统计
export async function getDataStat(params) {
  return http.post('/home/dataStat',params)
}
